package com.batch_demo.jdk8;

public class Value< T > {
    public static < T > T defaultValue() {
        return null;
    }

    public T getOrDefault( T value , T defaultValue ) {
        return ( value != null ) ? value : defaultValue;
    }


}
